Project 2  1
Usable.h File Reference
#include "matrix.h"
#include "EasyBMP.h"
#include <assert.h>
Include dependency graph for Usable.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ConvolutionOpSse
 

Functions

Matrix< double > grayscale (BMP &img)
 
template<typename T >
Matrix< T > custom (Matrix< T > src_image, const Matrix< double > &kernel)
 
Matrix< double > sobel_x (const Matrix< double > &src_image)
 Sobel for x.
 
Matrix< double > sobel_y (const Matrix< double > &src_image)
 Sobel for y.
 
template<typename T >
Matrix< T > extraMatrix (const Matrix< T > &src, uint newNRows, uint newNCols)
 

Detailed Description

Author
Mikhail Agranovskiy, 321, cs msu

Function Documentation

template<typename T >
Matrix<T> custom ( Matrix< T >  src_image,
const Matrix< double > &  kernel 
)

Implementation of convolution filter

Parameters
src_imagesrc image
kernelconvolution kernel
Returns
result of usage of the filter
template<typename T >
Matrix<T> extraMatrix ( const Matrix< T > &  src,
uint  newNRows,
uint  newNCols 
)

Перед разбиением на клетки изображение расширяется так, чтобы поделиться нацело. Ввыброно дополнение константой (конкретно, нулем) – чтобы вклад краев не превосходил вклад других клеток.

Parameters
src
newNRows
newNCols
Returns
Matrix<double> grayscale ( BMP &  img)

Calulate grayscale image.

Parameters
imgsource image
Returns
grayscale matrix